//
//  PPDeviceModel.h
//  PPBlueToothDemo
//
//  Created by 彭思远 on 2020/7/31.
//  Copyright © 2020 彭思远. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PPScaleDefine.h"
NS_ASSUME_NONNULL_BEGIN

@interface PPDeviceModel : NSObject

@property (nonatomic, copy) NSString *deviceMac;
@property (nonatomic, copy) NSString *deviceName;
@property (nonatomic, copy) NSString *sign;
@property (nonatomic, assign) PPDeviceType deviceType;
@property (nonatomic, assign) PPDeviceProtocolType deviceProtocolType;
@property (nonatomic, assign) PPDeviceCalcuteType deviceCalcuteType;
@property (nonatomic, assign) PPDeviceAccuracyType deviceAccuracyType;
@property (nonatomic, assign) PPDevicePowerType devicePowerType;
@property (nonatomic, assign) PPDeviceFuncType deviceFuncType;
@property (nonatomic, assign) PPDeviceUnitType deviceUnitType;
@property (nonatomic, assign) NSInteger devicePower;
@property (nonatomic, assign) NSInteger mtu;
@property (nonatomic, copy) NSString *firmwareVersion;
@property (nonatomic, copy) NSString *timeZone;
@property (nonatomic, copy) NSString *serialNumber;
@property (nonatomic, copy) NSString *hardwareVersion;
@property (nonatomic, copy) NSString *modelNumber;
@property (nonatomic, copy) NSArray *unitArr;
@property (nonatomic, copy) NSNumber *rssi;

/// 根据‘centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary<NSString *,id> *)advertisementData RSSI:(NSNumber *)RSSI’方法返回的额advertisementData 对象实例化一个PPDevice对象
/// @param advertisementData
/// @param rssi
- (instancetype)initWithAdvertisementData:(NSDictionary<NSString *,id> *)advertisementData andRSSI:(NSNumber *)rssi;

+ (instancetype)fakeDeviceForCalcuate:(PPDeviceCalcuteType)type;
@end

NS_ASSUME_NONNULL_END
